﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;

/// <summary>
/// Summary description for Campaign_Status
/// </summary>
/// 

namespace LinqObj
{
    public partial class Campaign_Status
    {
        public Campaign_Status(int _key, string _val)
        {
            this.status_id = _key;
            this.status = _val;
        }

        public static int GetIndex(List<Campaign_Status> lookups, string strCampaignStatus)
        {
            for (int i = 0; i < lookups.Count; i++)
            {
                if (lookups[i].status.Equals(strCampaignStatus.ToLower(), StringComparison.CurrentCultureIgnoreCase))
                    return i;
            }
            throw new Exception("Not found in CampaignStatus lookups");

        }
    }
}
